package com.hrm.houfei.dao;

import java.util.List;

import com.hrm.houfei.po.Primarykeycn;

public interface IPrimaryKeyDAO {

	public abstract void save(Primarykeycn transientInstance);

	public abstract void delete(Primarykeycn persistentInstance);

	public abstract Primarykeycn findById(java.lang.Integer id);

	public abstract List findByExample(Primarykeycn instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findAll();

	public abstract Primarykeycn merge(Primarykeycn detachedInstance);

	public abstract void attachDirty(Primarykeycn instance);

	public abstract void attachClean(Primarykeycn instance);
	
	/**
	 * 根据用户类型获取父节点的所有子节点
	 * @param parentId
	 * @param userType
	 * @return
	 */
	public abstract List<Primarykeycn> findByProperty(String propertyName, Object value,String userType);


}